Catch 1select count(SongId) from chartsquery where (genre='R') and (subgenre='R') RowsCount=0Catch 1Bselect count(SongId) from chartsquery where (genre='R') RowsCount=0